package com.lagou.edu.wwyan.nacos.code.service;

import com.lagou.edu.wwyan.nacos.code.service.impl.EmailFeignClientFailBack;
import com.lagou.edu.wwyan.nacos.email.service.LagouEmailService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


//@FeignClient(value = "lagou-service-email-nacos",contextId = "emailFeignClient",fallback = EmailFeignClientFailBack.class,path = "/email")
public interface EmailFeignClient extends LagouEmailService {
    @GetMapping("{email}/{code}")
    Boolean sendCode(@PathVariable String email, @PathVariable String code);
}
